import hyRequest from '../../index'

export function api_host(data?: any) {
  return hyRequest.post({
    url: '/api_jsonrpc.php',
    // url: '/operation/host',
    data
  })
}

// 查询所有监控项列表（主机下所有指标）
export function API_item_get(data?: any) {
  return hyRequest.post({
    url: '/api_jsonrpc.php',
    // url: '/operation/host',
    data: {
      jsonrpc: '2.0',
      method: 'item.get',
      ...data
    }
  })
}
